<!--
/**************************************************
* @(#)orderviewwz.jsp
*
* Copyright (c) 2005 Hitrust Technology Inc.
* Developed by SDC, Hitrust.
* All Rights Reserved.
*
* Modify History:
*  v1.00, 2006/03/21, SimonyiPeng
*  1) first release
/**************************************************
-->
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page import="java.util.*"%>
<%@ page import="com.hitrust.gs.business.GSOrganizationProcessor"%>
<%@ include file="../../common.jsp" %>
<html>
<head>
<title>订单录入结果</title>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="<%=root%>/css/caigouxitong.css" type=text/css rel=stylesheet>
<SCRIPT language="JavaScript" src="<%=root%>/js/common.js"></SCRIPT>
<SCRIPT language="JavaScript" src="<%=root%>/js/calendar.js"></SCRIPT>
<SCRIPT language="JavaScript" src="<%=root%>/js/string.js"></SCRIPT>

</head>

<%
ArrayList arylist = (ArrayList)request.getAttribute("arylist");
GSOrderBean tBean = (GSOrderBean)request.getAttribute("bean");
ArrayList bclist = (ArrayList)request.getAttribute("balancecategory");

String bcName = "";
String[] ttStr = (String[])arylist.get(0);
System.out.println("bcno:"+ttStr[14]);
for(int bcsize=0;bcsize<bclist.size();bcsize++){
	GSBalanceCategoryBean bcBean = (GSBalanceCategoryBean)bclist.get(bcsize);
	if(bcBean.getGs_balance_category_no().equals(ttStr[14])){
		bcName = bcBean.getGs_balance_category_name();
	}
}
%>


<script language='javascript'>

	<%
		//如果点击"保存"按钮，在此作出保存成功提示
		if(request.getAttribute("SUCCESSMSG") != null)
			out.print("alert('"+request.getAttribute("SUCCESSMSG")+"');");
	%>
	
</script>

<body   BGCOLOR=#f5f5f5 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 >

<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td height="20"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="1">
        <tr height="20">
          <td height="20" width="1" class="mtxt_black">&nbsp;</td>
          <td height="30" width="758" class="mtxt_black">订单内容</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td class="bg_line" height="2"></td>
  </tr>
</table>

<br>


<form name="form1" id="form1" method="post"  style="visibility: visible;">
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr> 
        <td> 
            <table class=bg_table id=tableId	cellspacing=1 cellpadding=2 width=100% align=center border=0>
                <tbody> 
                <tr class="bg_column" height=20> 
                    	<td align=middle colspan="11">订单总体信息</td>
                </tr>
                <tr class="bg_row_odd" height=20> 
                	<td class=top align=middle width='20%' >
                	    <div align="center" class="txt_content">订单编号</div>
                	</td>
                    <td class=top align=middle > 
                        <div align="left" class="txt_content" > 
                        <%=tBean.getGs_order_tempid()%>
						</div>
                    </td>
                    <td class=top align=middle colspan=4> 
                        <div align="center" class="txt_content">
                        <%
                        	//if("3".equals(tBean.getGs_order_status())) out.print("直接审批通过 ");
                        	//else out.print("需要审批");
                        %>
                        </div>
                    </td>
                </tr>
                
                <tr class="bg_row_odd" height=20> 
                    <td class=top align=middle> 
                        <div align="center" class="txt_content">订货单位</div>
                    </td>
                    <td class=top align=center> 
                        <div align='left' class='txt_content'> 
                        <%GSOrganizationProcessor oproc = new GSOrganizationProcessor();%>
                        <%=oproc.getOrg(tBean.getGs_workcorp_id()).getGs_org_name()%>
                        </div>
                    </td>
	                <td class=top align=left> 
	                    <div align="center" class="txt_content">配送方式</div>
	                </td>
                    <td class=top align=middle> 
                        <div align='left' class='txt_content'> 
                        <%String tDeliverMode = tBean.getGs_deliver_mode();%>
                        <%=com.hitrust.gs.service.GSBaseManager.getDictioanryName(tDeliverMode)%>
                        </div>
                    </td>
	                <td class=top align=middle> 
	                    <div align="center" class="txt_content">结算方式</div>
	                </td>
                    <td class=top align=middle> 
                        <div align='left' class='txt_content'> 
                        <%String tBalanceMode = tBean.getGs_balance_mode();%>
                        <%=com.hitrust.gs.service.GSBaseManager.getDictioanryName(tBalanceMode)%>
                        </div>
                    </td>
                </tr>
                <tr class="bg_row_odd" height=20> 
	                <td class=top align=middle> 
	                    <div align="center" class="txt_content">送货地址</div>
	                </td>
                    <td class=top align=middle> 
                        <div align='left' class='txt_content'> 
                        <%=tBean.getGs_deliver_goods_addr()%>
                        </div>
                    </td>
	                <td class=top align=middle> 
	                    <div align="center" class="txt_content">联系人</div>
	                </td>
                    
                    <td class=top align=middle > 
                        <div align='left' class='txt_content'> 
                        <%=tBean.getGs_order_contact_name()==null?"":tBean.getGs_order_contact_name()%>
                        </div>
                    </td>
	                <td class=top align=middle> 
	                    <div align="center" class="txt_content">联系电话</div>
	                </td>
                    
                    <td class=top align=middle > 
                        <div align='left' class='txt_content'> 
                        <%=tBean.getGs_order_contact_phone()==null?"":tBean.getGs_order_contact_phone()%>
                        </div>
                    </td>                
                </tr>
                
				<tr class="bg_row_odd" height=20> 
                    <td class=top align=middle> 
                        <div align="center" class="txt_content">结算分类</div>
                    </td>
                    <td class=top align=middle colspan='5'> 
                        <div align="left" class="txt_content"> <%=bcName %>
                        </div>
                    </td>
                </tr>
                <tr class="bg_row_odd" height=20> 
                    <td class=top align=middle> 
                        <div align="center" class="txt_content">备注</div>
                    </td>
                    <td class=top align=middle colspan='5'> 
                        <div align="left" class="txt_content"> 
                        <%=tBean.getGs_notes()==null?"":tBean.getGs_notes()%>
                        </div>
                    </td>
                </tr>
                <tr class="bg_row_odd" height=20> 
	                <td class=top align=middle> 
	                    <div align="center" class="txt_content">创建人</div>
	                </td>
                    <td class=top align=middle colspan=2> 
                        <div align='left' class='txt_content'> 
						<%
						if (!tBean.getGs_recorder_id().equalsIgnoreCase(""))
						{
							com.hitrust.gs.dao.GSOperatorDAO operDao = new com.hitrust.gs.dao.GSOperatorDAO();
							com.hitrust.gs.bean.GSOperatorBean operBean = operDao.queryOperById(tBean.getGs_recorder_id());
							if (operBean != null)
								out.print(operBean.getGs_oper_name());
						}
						%>                        
                        </div>
                    </td>
	                <td class=top align=middle> 
	                    <div align="center" class="txt_content">创建时间</div>
	                </td>
                    
                    <td class=top align=middle colspan=2> 
                        <div align='left' class='txt_content'> 
                        <%=tBean.getGs_order_create_date()%>
                        </div>
                    </td>
                </tr>                
                </tbody> 
            </table>
        </td>
    </tr>
</table>

<center>



    <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
    	<tr>
    		<td width=60% align=left>
				<br>
    		</td>
    	<tr>
    </table>

    <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
    	<input type='hidden' id='currentrownum' name='currentrownum' value='1'>
        <tr> 
            <td> 
                <table class=bg_table id=tableId	cellspacing=1 cellpadding=2 width=100% align=center border=0>
                    <tbody> 
                    <tr class="bg_column" height=20> 
                    	<td align=middle colspan="13">订单明细信息</td>
	                </tr>
	                
	                <tr class="bg_column" height=20> 

                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 集中编码</div>
                        </td>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 产品名称</div>
                        </td>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 规格</div>
                        </td>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 型号</div>
                        </td>
                        <td class=top align=middle nowrap>  
                            <div align="center" class="txt_content"> 品牌</div>
                        </td>
                        <td class=top align=middle nowrap>  
                            <div align="center" class="txt_content"> 质保期</div>
                        </td>
                        <td class=top align=middle nowrap>  
                            <div align="center" class="txt_content"> 价格（元）</div>
                        </td>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 订货数量</div>
                        </td>
                        <td class=top align=middle nowrap> 
                            <div align="center" class="txt_content"> 单位</div>
                        </td>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 送货日期</div>
                        </td>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 送货时间</div>
                        </td>
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 结算模式</div>
                        </td>
                    </tr>


<%
for(int i=0;i<arylist.size();i++){
	String[] tStr = (String[])arylist.get(i);
	String tTempStr="";
	if(i%2==0){
		tTempStr="class=\"bg_row_odd\"";
	}else {
		tTempStr="class=\"bg_row_even\"";
	}
%>

                    <tr id='tr1' <%=tTempStr%> height=20 > 

                        <!--集中编码-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
                            <%=tStr[4]%>
							</div>
                        </td>
                        <!--产品名称-->
                        <td class=top align=middle nowrap>                         
                            <div align="center" class="txt_content"> 
                            <a href="<%=response.encodeURL(root+"/A150103.do")%>?concentricityId=<%=tStr[4]%>" target=_blank><%=tStr[3]%></a>
							</div>
                        </td>
                        <!--规格-->
                        <td class=top align=middle> 
                            <div align="center" class="txt_content"> 
                            <%=tStr[8]%>
							</div>
                        </td>
                        <!--型号-->
                        <td class=top align=middle nowrap> 
                            <div align="center" class="txt_content">                             	
                            <%=tStr[9]%>

                            </div>
                        </td>
                        <!--品牌-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            <%=tStr[10]%>
                            </div>
                        </td>
                        <!--质保期-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            <%=tStr[13]%>
                            </div>
                        </td>
                        <!--参考价格-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            <%=StringUtils.format(tStr[12],4)%>
                            </div>
                        </td>
                        <!--订货数量-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            <%=StringUtils.format(tStr[5],2)%>
                            </div>
                        </td>
                        <!--单位-->
                        <td class=top align=middle> 
                            <div align='center' class='txt_content'> 
                            <%=tStr[11]%>
                            </div>
                        </td>
                        <!--订货日期-->

                        <td class=top align=middle nowrap id='linkman1'> 
                            <div align='center' class='txt_content'> 
                            <%=tStr[6]%>
                            </div>
                        </td>
                        <!--订货时间-->

                        <td class=top align=middle nowrap id='linktel1'> 
                            <div align='center' class='txt_content'> 
							<%=tStr[7]%>
                            </div>
                        </td>
                        <!--结算模式-->

                        <td class=top align=middle nowrap id='mode1'> 
                            <div align='center' class='txt_content'> 
                            <%=tStr[16]%>
                            </div>
                        </td>
                        
<%
}
%>

					
                    </tbody> 
                </table>
            </td>
        </tr>
    </table>
    <p align="center">  
        	<input type="button" class="kuang" width="58" height="24" value="返回" 
    		onclick="document.form1.action='<%=response.encodeURL(root+"/A150101.do")%>';form1.submit();">
    </p>
</form>


<div style="text-align:center;visibility:hidden" id="queding" name="queding">
	   <input type="image" src="images/cx.jpg" width="58" height="24" class="box" onclick="form1.submit()">
</div>
</center>



</body>
</html>